package com.chen.config;

import com.carl.annotation.ConditionalOnSystem;
import org.springframework.context.annotation.Bean;
import com.chen.configuration.SayHello;

public class HelloConfiguration {

    @Bean
    @ConditionalOnSystem(system = "linux") // windows linux Mac
    public SayHello sayHelloToWorld() {
        SayHello hello = new SayHello();
        String test = hello.helloString();
        System.out.println("$$$ 加载了sayHello 类  @@ ===> " + test);
        return hello;
    }

}
